package Acme.DBHelper;

import java.io.InputStream;
import java.util.Properties;

public class ConnString {
	public ConnString(){
		try
		{
			InputStream objInputStream = getClass().getResourceAsStream("/Acme/Resources/DbConfig.properties");
			Properties objProperties = new Properties();
			
			objProperties.load(objInputStream);
			
			this.set_driver(objProperties.getProperty("driver"));
			this.set_url(objProperties.getProperty("url"));
			this.set_password(objProperties.getProperty("password"));
			this.set_user(objProperties.getProperty("user"));			
			objInputStream.close();
		}
		catch(Exception ex){
			ex.printStackTrace();
		}
	}
	
	
	public String _driver;
	public String _url;
	public String _user;
	public String _password;
	public String get_driver() {
		return _driver;
	}
	public void set_driver(String _driver) {
		this._driver = _driver;
	}
	public String get_url() {
		return _url;
	}
	public void set_url(String _url) {
		this._url = _url;
	}
	public String get_user() {
		return _user;
	}
	public void set_user(String _user) {
		this._user = _user;
	}
	public String get_password() {
		return _password;
	}
	public void set_password(String _password) {
		this._password = _password;
	}
}
